package com.sscaipiao.android.activity;


import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.*;

import com.sscaipiao.android.R;
import com.sscaipiao.android.activity.Base.BaseHallUIActivity;
import com.sscaipiao.android.activity.Base.BaseUIActivity;
import com.sscaipiao.android.activity.Base.BaseUIListActivity;
import com.sscaipiao.android.activity.Basketball.BasketballHisActivity;
import com.sscaipiao.android.activity.DaLeTou.DaLeTouHistoryActivity;
import com.sscaipiao.android.activity.Football.FootballHisActivity;
import com.sscaipiao.android.activity.FootballSingle.FootballSingleHisActivity;
import com.sscaipiao.android.activity.Kuai3.Kuai3Activity;
import com.sscaipiao.android.activity.Kuaile8.Kuaile8HisActivity;
import com.sscaipiao.android.activity.Pailie3.Pailie3HisActivity;
import com.sscaipiao.android.activity.Pailie5.Pailie5HisActivity;
import com.sscaipiao.android.activity.QiXingCai.QixingcaiHisActivity;
import com.sscaipiao.android.activity.QiLeCai.QilecaiHisActivity;
import com.sscaipiao.android.activity.ShengFuCai.ShengfucaiHisActivity;
import com.sscaipiao.android.activity.ShiShiCai.ShishicaiHisActivity;
import com.sscaipiao.android.activity.ShiWuXuanWu.ShiwuxuanwuHisActivity;
import com.sscaipiao.android.activity.ShiYiXuanWu.ShiyixuanwuHisActivity;
import com.sscaipiao.android.activity.ShuangSeQiu.DoubleColorBallHis1Activity;
import com.sscaipiao.android.activity.ThreeD.Fucai3DHisActivity;
import com.sscaipiao.android.common.Constants;
import com.sscaipiao.android.widget.JackpotItem;

public class KaijiangActivity extends BaseHallUIActivity {


	private Button kaijiang_main_back;

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		addContainerMain(R.layout.kaijiang1);
		setupUI(true, false, false, false, true);
		setTitleText("开奖公告");
	}

	@Override
	public void onClick(View v) {
		super.onClick(v);
		if (v instanceof JackpotItem) {
			JackpotItem ji = (JackpotItem) v;
			String name = ji.getName();
			for (int i = 0; i < Constants.LOTT_ARRAY.length; i++) {
				if (name.equals(Constants.LOTT_ARRAY[i].getName())) {
					Class his =   Constants.LOTT_ARRAY[i].getHisActivity();
					if (his != null) {
						Intent mi = new Intent();
						mi.putExtra("code", Constants.LOTT_ARRAY[i].getCode());
						mi.setClass(this, his);
						startActivity(mi);
					} else {
						Toast.makeText(this,"功能未完善",Toast.LENGTH_SHORT).show();
					}
				}
			}

		} else {
			Toast.makeText(this,"功能未提供",Toast.LENGTH_SHORT).show();
		}
//
//		int id = v.getId();
//		switch (id) {
//			case R.id.item_shuangseqiu:
//				break;
//			case R.id.item_daletou:
//				break;
//			case R.id.item_jingcaizuqiu:
//				break;
//			case R.id.item_shishicai:
//				break;
//			case R.id.item_jingcailanqiu:
//				break;
//			case R.id.item_zuqiudanchang:
//				break;
//			case R.id.item_shiyixuanwu:
//				break;
//			case R.id.item_sandi:
//				break;
//			case R.id.item_qixingcai:
//				break;
//			case R.id.item_shiwuxuanwu:
//				break;
//			case R.id.item_pailiesan:
//				break;
//			case R.id.item_pailiewu:
//				break;
//			case R.id.item_qilecai:
//				break;
//
//			default:
//		}

	}
}